﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Gencode.Controls.Harmonica
{
	[ToolboxItem(false)]
	public partial class HarmonicaNode : Control
	{
		HarmonicaNodeButton button;
		public HarmonicaNodeButton NodeButton
		{
			get
			{
				return button;
			}
			set
			{
				button = value;
			}
		}

		HarmonicaNodeControl control;
		public HarmonicaNodeControl NodeControl
		{
			get
			{
				return control;
			}
			set
			{
				control = value;
			}
		}

		public HarmonicaNode()
		{
			InitializeComponent();

			NodeButton = new HarmonicaNodeButton();
			NodeControl = new HarmonicaNodeControl();

			this.Controls.Add(NodeButton);
			this.Controls.Add(NodeControl);
		}

		public HarmonicaNode(string buttonText)
		{
			InitializeComponent();
			NodeButton = new HarmonicaNodeButton();
			NodeControl = new HarmonicaNodeControl();

			NodeButton.Text = buttonText;

			this.Controls.Add(NodeButton);
			this.Controls.Add(NodeControl);
		}

		public HarmonicaNode(string buttonText, HarmonicaNodeControl control)
		{
			InitializeComponent();

			NodeButton = new HarmonicaNodeButton();
			NodeControl = control;

			NodeButton.Text = buttonText;

			this.Controls.Add(NodeButton);
			this.Controls.Add(NodeControl);
		}

		protected override void OnPaint(PaintEventArgs pe)
		{
			base.OnPaint(pe);
		}
	}
}
